
class Input:
    def __init__(self, file_name, read_lines=[]):
        self.file_name = file_name
        self.read_lines = read_lines

    def __input_file(self):
        print("输入内容为：")
        with open('text.txt') as f:
            lines = f.readlines()
            for line in lines:
                line = line.strip("\n")
                print(line)
                self.read_lines.append(line)

    def run(self):
        self.__input_file()
        return self.read_lines
